package org.jeecg.modules.custom.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @Description: 客户表
 * @Author: jeecg-boot
 * @Date:   2022-08-19
 * @Version: V1.0
 */
@Data
@TableName("mt_custorm")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="mt_custorm对象", description="客户表")
public class MtCustorm implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
	/**客户类型*/
    @Excel(name = "客户类型", width = 32)
    @Dict(dictTable = "sys_category", dicText = "name",dicCode = "id")
    @ApiModelProperty(value = "客户类型")
    private String custormType;
	/**编号*/
    @Excel(name = "编号", width = 15)
    @ApiModelProperty(value = "编号")
    private String custormNo;
    /**客户助记码*/
    @Excel(name = "客户助记码", width = 15)
    @ApiModelProperty(value = "客户助记码")
    private String mnemonicCode;
	/**客户名称*/
    @Excel(name = "客户名称", width = 15)
    @ApiModelProperty(value = "客户名称")
    private String custormName;
	/**联系人*/
    @Excel(name = "联系人", width = 15)
    @ApiModelProperty(value = "联系人")
    private String linkMan;
	/**联系电话*/
    @Excel(name = "联系电话", width = 15)
    @ApiModelProperty(value = "联系电话")
    private String linkPhone;
	/**所属区域*/
    @Excel(name = "所属区域", width = 15)
    @ApiModelProperty(value = "所属区域")
    private String area;
	/**地址*/
    @Excel(name = "地址", width = 15)
    @ApiModelProperty(value = "地址")
    private String address;
	/**坐标*/
    @Excel(name = "坐标", width = 15)
    @ApiModelProperty(value = "坐标")
    private String crood;
	/**负责服务商*/
    @Excel(name = "服务商", width = 15, dictTable = "mt_service_providers", dicText = "pro_name", dicCode = "id")
    @Dict(dictTable = "mt_service_providers", dicText = "pro_name", dicCode = "id")
    @ApiModelProperty(value = "负责服务商")
    private String providerId;
	/**负责服务站*/
    @Excel(name = "服务站", width = 15, dictTable = "mt_service_station", dicText = "station_name", dicCode = "id")
    @Dict(dictTable = "mt_service_station", dicText = "station_name", dicCode = "id")
    @ApiModelProperty(value = "负责服务站")
    private String stationId;
    @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @ApiModelProperty(value = "关联账户")
    private String userId;
}
